<?php slot('article') ?>
<div class="maincontent">
  <div class="contentbox">
	<div class="contentboxin">
	  <div class="boxintopleft">
		<?php include_component('headerMenu', 'breadCrumbs') ?>
	  </div>
	  <div class="boxintopright">
		<div class="boxtoplink">
		  <img width="12" height="12" alt="" src="/olly/img/print.png">
		  <a href="<?php include_component('linker', 'printView', array('node' => $node)) ?>"><?php echo __('Print') ?></a>
		  <div class="clear"></div>
		</div>
		<?php include_partial('article/share') ?>
	  </div>
	  <div class="clear"></div>
	  <div class="boxinpealkiri">
		<h1><?php echo $node['pageTitle'] ?></h1>
	  </div>
	  <div class="tabstext">
		<div class="clear"></div>
		<div class="tabbox">
		  <div class="tabpealkiri"><h2><?php echo $node['description'] ?></h2></div>
		  <?php echo $node['content'] ?>
		  <b><?php echo $sf_user->getFlash('attachmentNotice') ?></b> <br /><br />

		  <form id="image_upload_form" action="<?php include_component('linker', 'plainActions', array('action' => 'imageUpload', 'module' => 'userGalleryForm') )?>" method="post" enctype="multipart/form-data">
			  <?php echo $form->renderHiddenFields(true) ?>
			<div style="float:left;margin-right:200px;">
			<div class="formsbox" style="margin-right:115px;">
			  <div class="formname"><?php echo __('Nimi') ?>:</div>
			  <div class="forminputp">
				  <?php echo $form['name']->render(array( 'class' => 'registerforms')) ?>
			  </div>
			  <div class="clear"></div>
			</div>
			<div class="formsbox" style="margin-right:115px;">
			  <div class="formname"><?php echo __('Perekonnanimi') ?>:</div>
			  <div class="forminputp">
				 <?php echo $form['lastname']->render(array('class' => 'registerforms')) ?>
			  </div>
			  <div class="clear"></div>
			</div>
			<div class="formsbox" style="margin-right:115px;">
			  <div class="formname"><?php echo __('Telefon') ?>:</div>
			  <div class="forminputp">
				  <?php echo $form['phone']->render(array('class' => 'registerforms')) ?>
			  </div>
			  <div class="clear"></div>
			</div>
			<div class="formsbox" style="margin-right:115px;">
			  <div class="formname"><?php echo __('Email') ?>:</div>
			  <div class="forminputp">
				  <?php echo $form['email']->render(array('class' => 'registerforms')) ?>
			  </div>
			  <div class="clear"></div>
			</div>			
			  <?php for($i = 1; $i <= $form->getPicturesAmount(); ++$i): ?>
				<div class="formsbox" style="margin-right:128px;">
				  <div class="formname"><?php echo __('Pilt').' '.$i?>:</div>

					  <?php echo $form['picture' . $i]->render(array('class' => 'registerforms', 'style' => '')) ?>

				  <div class="clear"></div>
				</div>			
			  <?php endfor; ?>
			<div class="formsbox" style="width:390px;margin-top:5px;">
			  <div class="formname" style="margin-left:33px">
				<?php echo __('turvakood') ?>:
			  </div>
			  <div class="forminputp">
				  <?php echo $form['captcha']->render(array('class' => 'registerforms'))  ?>
			  </div>
			  <img style="float:right;" id="captcha_image" src="<?php echo url_for('sf_captchagd', array('r' => time() ) ) ?>" width="113" height="36" alt=""/>
			  <div class="clear"></div>
			</div>				
			  <input type="hidden" name="node_id" value="<?php echo $node['id'] ?>" />
			<div class="button submitbutton" style="margin-left:200px;">
			  <div id="image_upload_form_submit" class="buttontext"><a href="#"><?php echo __('Saada')?></a></div>
			</div>
			</div>
		  </form>		  
		</div>
	  </div>
	</div>
  </div>
</div>

<script type="text/javascript">
  $('#image_upload_form_submit').click(function () {
	$('#image_upload_form').submit();
	return false;
  });
</script>
<?php end_slot(); ?>